package com.study.common.vo;

import com.study.common.entity.MedicineEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class MedicineWithCover extends MedicineEntity
{
  private String cover;

  public MedicineWithCover(MedicineEntity medicine)
  {
    BeanUtils.copyProperties(medicine, this);
  }
}
